package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.tomcat.jni.Local;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "辅料设置")
public class AuxiliaryMaterialSetting {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 辅料名称
     */
    @Column(comment = "辅料名称", length = 20)
    private String name;

    /**
     * 单位
     */
    @Column(comment = "单位", length = 20)
    private String unit;

    /**
     *
     */
     @Column(comment = "原价",defaultValue = "0")
     private Integer originalPrice;

    /**
     * 单价
     */
    @Column(comment = "单价")
    private Integer price;

    /**
     * 序号
     */
    @Column(comment = "序号")
    private Integer sort;

    /**
     * 状态 1.正常 -1.删除 2.禁用
     */
    @Column(comment = "状态 1.正常 -1.删除 2.禁用")
    private Integer status;

    /**
     * 备注
     */
    @Column(comment = "备注")
    private String remark;

    /**
     * 药房id
     */
    @Column(comment = "药房id")
    private Integer pharId;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @Column(comment = "更新时间")
    private LocalDateTime updateDate;
}
